package nagel_schreckenberg;

import java.util.ArrayList;

import nagel_schreckenberg.Lane.Direction;

public class ThreeIntersection implements Intersection{
	
	private Lane mainIn;
	private Lane mainOut;
	private Lane minorIn;
	private Lane minorOut;
	
	private int phasecounter;
	public enum Phase{
		MAIN, MINOR;
	}
	private Phase phase;

	public ThreeIntersection(){
		phasecounter = 0;
		phase = Phase.MAIN;
	}

	public void addLanes(Lane mai, Lane mao, Lane mii, Lane mio) {
		mainIn = mai;
		mainIn.connectTarget(this);
		mainOut = mao;
		mainOut.connectSource(this);
		minorIn = mii;
		minorIn.connectTarget(this);
		minorOut = mio;
		minorOut.connectSource(this);
	}

	@Override
	public void clearSink() {
	}

	@Override
	public Lane getIn(Direction d) {return null;}

	@Override
	public void spawn() {}

	@Override
	public Lane getOut(Direction d) {return null;}

	@Override
	public void controlLights() {}

	@Override
	public boolean hasSpawned() {return false;}

	@Override
	public void gershenson() {}

	@Override
	public int countSink() {return 0;}

	@Override
	public double travelTime() {return 0;}

	@Override
	public void learning() {}

	@Override
	public void greedy() {}

}
